home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
RadioButtonEditor.h
< prev
next >
Wrap
Text File
|
1997-08-10
|
2KB
|
75 lines
/*
* File: RadioButtonEditor.h
* Summary: A view that knows how to edit a TRadioButton.
* Written by: Jesse Jones
*
* Copyright ゥ 1996 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 11/03/96 JDJ Created
*/
#pragma once
#include <ZRadioButton.h>
#include "BasePaneEditor.h"
// ===================================================================================
// class CEditRadioButtonCommand
// ===================================================================================
class CEditRadioButtonCommand : public CBaseEditPaneCommand<TRadioButton, SRadioButtonInfo> {
typedef CBaseEditPaneCommand<TRadioButton, SRadioButtonInfo> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CEditRadioButtonCommand();
CEditRadioButtonCommand(TRadioButton* pane, const SRadioButtonInfo& oldInfo, const SRadioButtonInfo& newInfo);
//-----------------------------------
// Inherited API
//
public:
virtual void UpdatePane(const SRadioButtonInfo& newInfo);
};
// ===================================================================================
// CRadioButtonEditor
// ===================================================================================
class CRadioButtonEditor : public CBasePaneEditor<TRadioButton, SRadioButtonInfo, CEditRadioButtonCommand> {
typedef CBasePaneEditor<TRadioButton, SRadioButtonInfo, CEditRadioButtonCommand> Inherited;
//-----------------------------------
// Initialization/Destruction
//
public:
virtual ~CRadioButtonEditor();
CRadioButtonEditor(TView* superView);
//-----------------------------------
// Inherited API
//
protected:
virtual SRadioButtonInfo GetEditorInfo() const;
virtual void SetEditorInfo(const SRadioButtonInfo& info);
//-----------------------------------
// TReanimator Support
//
public:
static MReanimatable* Create(MReanimatable* parent);
};